package com.itheima.Compute;

public class ArithmeticoperatorDemo1 {
    public static void main(String[] args) {
        //+、-、*、/
        System.out.println(3+2);
        System.out.println(3-2);
        System.out.println(3*2);
        System.out.println(3/2);

        //小数参与计算
        //结论：小数参与计算，结果可能不精确
        //原因要到学javaSE时详细讲解
        System.out.println(1.1+3.2);//4.300000000000001
        System.out.println(1.1-1.01);//0.09000000000000008
        System.out.println(3.02-5.14);//-2.1199999999999997
        System.out.println(1.1*2.01);//2.211
    }
}
